﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Core
{
    public class Org
    {
        public Guid Id { get; set; }
        public string Code { get; set; }
        public string Caption { get; set; }
        public int SortIndex { get; set; }

        public Guid? ParentId { get; set; }
        //public Org Parent { get; set; }

        public List<Org> Children { get; set; }

        /// <summary>
        /// 1:公司
        /// 2：部门
        /// 3：岗位
        /// </summary>
        public int Type { get; set; }
    }
}
